#include"shopping.h"
#include<iostream>


int main()
{
    cartSystem s(1);
    while(1)
    {
        s.show();
        std::cout<<"1、添加商品进购物车\n";
        std::cout<<"2、从购物车中删除商品\n";
        std::cout<<"3、撤销删除\n";
        std::cout<<"4、退出\n";
        int choice=0;
        std::cin>>choice;
        switch(choice)
        {
            case 1:s.addGoods();break;
            case 2:s.deleteGoods();break;
            case 3:s.backDelete();break;
            default:
                    break;
        }
        if(choice==4)
            break;
}


















return 0;

}